import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './alStyle/iconfont.less'
import Interface from  '@/utils/interface.js'

Vue.use(Interface)

import VueDragVerify from 'vue-drag-verify';
Vue.component('vue-drag-verify', VueDragVerify)

import { BankCard } from 'vant-green';
// import 'vant/lib/contact-card/style';

Vue.use(BankCard);

// 初始化样式
import '@/assets/css/reset.css'
// 移动端rem适配js
// import '@/assets/js/rem.js'

// 路由权限拦截
import './utils/permission'
// 初始化svg雪碧图
// import './icons'

import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);

// 注册自定义全局组件
import './utils/components'

if (process.env.VUE_APP_MODE == 'mock') {
  // 开发模式启动mock
  console.log('开发模式启动mock')
  require('../mock')
}
// 打印当前运行模式
console.log('当前运行模式为:', process.env)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
